<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
      <link rel="stylesheet" href="./../../helpwin.css">
      <title>MATLAB File Help: prtPreProcLda/prtPreProcLda</title>
   </head>
   <body>
      <!--Single-page help-->
      <table border="0" cellspacing="0" width="100%">
         <tr class="subheader">
            <td class="headertitle">MATLAB File Help: prtPreProcLda/prtPreProcLda</td>
            
            
         </tr>
      </table>
      <div class="title">prtPreProcLda/prtPreProcLda</div>
      <div class="helptext"><pre><!--helptext -->  <span class="helptopic">prtPreProcLda</span>  Linear discriminant analysis processing
 
    preProc = <span class="helptopic">prtPreProcLda</span> creates a linear discriminant pre
    processing object. A <span class="helptopic">prtPreProcLda</span> object projects the input data
    onto a linear space that best separates class labels
 
    A <span class="helptopic">prtPreProcLda</span> object has the following properties:
 
    nComponents - The number of dimensions to project the data onto.
                  This must less than or equal to the input data's
                  number of features, and less than or equal to the 
                  input data sets number of classes.
 
    A <span class="helptopic">prtPreProcLda</span> object also inherits all properties and functions from
    the prtAction class
 
    More information about LDA can be found at the following URL:
    <a href="http://en.wikipedia.org/wiki/Linear_discriminant_analysis">http://en.wikipedia.org/wiki/Linear_discriminant_analysis</a>
 
    Example:
 
    dataSet = prtDataGenIris;               % Load a dataset
    dataSet = dataSet.retainFeatures(1:3);  % Retain the first 3 features
    lda = <span class="helptopic">prtPreProcLda</span>;                    % Create the pre-processor
 
    lda = lda.train(dataSet);               % Train
    dataSetNew = lda.run(dataSet);          % Run
 
    % Plot the results
    subplot(2,1,1); plot(dataSet);
    title('Original Data');
    subplot(2,1,2); plot(dataSetNew);
    title('LDA Projected Data');</pre></div><!--after help --><!--seeAlso--><div class="footerlinktitle">See Also</div><div class="footerlink"> <a href="./../prtPreProc.html">prtPreProc</a>, <a href="./../prtPreProcPca.html">prtPreProcPca</a>, <a href="./../prtPreProcPls.html">prtPreProcPls</a>,
    <a href="./../prtPreProcHistEq.html">prtPreProcHistEq</a>, <a href="./../prtPreProcZeroMeanColumns.html">prtPreProcZeroMeanColumns</a>, <a href="./../prtPreProcLda.html">prtPreProcLda</a>,
    <a href="./../prtPreProcZeroMeanRows.html">prtPreProcZeroMeanRows</a>, <a href="./../prtPreProcLogDisc.html">prtPreProcLogDisc</a>, <a href="./../prtPreProcZmuv.html">prtPreProcZmuv</a>,
    <a href="./../prtPreProcMinMaxRows.html">prtPreProcMinMaxRows</a>
</div>
   </body>
</html>